package com.yupfeg.test.app

import androidx.lifecycle.ViewModel
import com.yupfeg.livedata.EventLiveData
import com.yupfeg.livedata.MutableEventLiveData

/**
 * App作用域的共享ViewModel
 * @author yuPFeG
 * @date 2021/09/19
 */
class AppShareViewModel : ViewModel(){

    val foreverEvent : EventLiveData<String>
        get() = mForeverEvent
    private val mForeverEvent = MutableEventLiveData<String>()


    fun sendForeverLifecycleEvent(){
        mForeverEvent.value = "test forever lifecycle event"
    }
}